<template>
    <div class="box">
        <div class="title">
            <div class="blue-icon"></div>
            <div class="blue-info">正常</div>
            <div class="red-icon"></div>
            <div class="red-info">故障</div>
        </div>
        <EchartsPieSmall class="echarts" :recive-data="options1" />
        <EchartsPieSmall class="echarts" :recive-data="options2" />
        <EchartsPieSmall class="echarts" :recive-data="options3" />
        <EchartsPieSmall class="echarts" :recive-data="options4" />
    </div>
</template>

<script>
import EchartsPieSmall from "../../../../../component/ECharts/EchartsPieSmall";
export default {
    components: {
        EchartsPieSmall,
    },
    props: {
        reciveData: {
            // type: Array,
        },
    },
    computed: {
        options1() {
            return this.reciveData.gnss;
        },
        options2() {
            return this.reciveData.inclinometer;
        },
        options3() {
            return this.reciveData.osmometer;
        },
        options4() {
            return this.reciveData.slope;
        },
    },
};
</script>

<style lang="scss" scoped>
.box {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    position: relative;
    padding-top: 10px;
    .title {
        position: absolute;
        width: 90px;
        height: 13px;
        // border: 1px solid red;
        // background: url("../../../../../asset/image/group/screenshot-title.png");
        top: 0;
        right: 0;
        .blue-icon {
            float: left;
            width: 16px;
            height: 3px;
            margin-top: 5px;
            background: url("../../../../../asset/image/group/line-blue.png");
        }
        .blue-info {
            float: left;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
        }
        .red-icon {
            float: left;
            width: 16px;
            height: 3px;
            margin-top: 5px;
            margin-left: 10px;
            background: url("../../../../../asset/image/group/line-red.png");
        }
        .red-info {
            float: left;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
        }
    }
    .echarts {
        width: 40%;
        height: 40%;
        // border: 1px solid red;
    }
}
</style>
